<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 
        onclick
        onmouseover  onmouseout
        onmouseenter onmouseleave
        onfoucs     onblur
        onchange     onsubmit
        onmosedown    onmousemove   onmuseup

        oncontextmenu   右击菜单     (操作 禁止右击)      e.preventDefault()
        onselectstart 开始选中       （操作 禁止选中）
     -->
    <p>你是选不中我的!并且你也右击 出不来菜单</p>
    <script>
        document.addEventListener('contextmenu', function (e) {
            e.preventDefault();//禁止右击

        });


        document.addEventListener('selectstart', function (e) {
            e.preventDefault();//禁止选中

        })
    </script>
</body>

</html>